using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ACM.cmsarea08;
using ACM.cmsarea08.Administration;


namespace ACM.cmsarea08.Administration.Core {
	public partial class ListerPrivate :  System.Web.UI.MasterPage {
		public ACM.cmsarea08.Administration.Controls.ListButton adm_button;
		public System.Resources.ResourceManager rm;
		override protected void OnInit(EventArgs e)
		{
			InitializeComponent();
			base.OnInit(e);
			if(Application["RM_ADM"]!=null)
    			rm = (System.Resources.ResourceManager) Application["RM_ADM"];
			
			string clang = ACM.cmsarea08.mainconfiguration.MainConf.LinguaPredefinita;
				if(ACM.cmsarea08.Users.CurrentUser.Autorizzato)
					clang = ACM.cmsarea08.Users.CurrentUser.PrefLanguage;
				
			
			if(System.Threading.Thread.CurrentThread.CurrentCulture.Name!= clang) {
  
	  		    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(clang);
 			    System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(clang);
 		 	}
		}

		private void InitializeComponent()
		{
			this.Load += new System.EventHandler(this.PageLoad);
			Popola_Title();
			PopolaJavascript_Link();
			PopolaCss_Import();
		}
	
		private void PageLoad(object o , EventArgs e) {
			if(!(ACM.cmsarea08.Users.CurrentUser.isRuolo("SysAdm") || 
			    ACM.cmsarea08.Users.CurrentUser.isRuolo("Admin") ||
			    ACM.cmsarea08.Users.CurrentUser.isRuolo("Content Manager")
			   )){
				//Response.Redirect("http://" + Request.ServerVariables["SERVER_NAME"]+"/administration/login.aspx");
			}
		}
		
		
		
		private void PopolaJavascript_Link () {
		/*
<!--	<link rel="shortcut icon" HREF="/public/prov_img/mondadori_icon.gif"> -->
<script type="text/javascript" src="/administration/template/plugins/mootools-1.js"></script>
<script type="text/javascript" src="/administration/template/js/funzioni.js"></script>
<script type="text/javascript" src="/template/plugins/smoothbox/smoothbox.js"></script>
<script type="text/javascript" src="/template/plugins/tabber/tabber.js"></script>
	*/
		}
		private void PopolaCss_Import() {
			/*
			<style type="text/css">
			<!--
			@import url("/administration/template/css/stile.css");
			@import url("/administration/template/css/form_stile.css");
			@import url("/template/plugins/smoothbox/smoothbox.css");
			-->
			</style>
			*/
		}
		private void Popola_Meta() {
			/*	
		<meta name="sommario"  content="" />
		<meta name="description"  content="" />
		<meta name="keywords" content="" />
		<meta name="robots" content="index, follow" />			
			*/			
		}
		private void Popola_Title() {
			this.Page.Header.Title = mainconfiguration.MainConf.NomePortale + " - Amministrazione";
		}
		
		
	}
	public partial class DummyLPrivate :  ListerPrivate {
	}
	
}
